<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class categorypage extends CI_Controller {
	public function __construct(){
		parent::__construct();
		$this->load->model(array('user_model', 'post_model'));
	}

	public function index(){
		$data['title'] = 'kategoeri';
		$data['page'] = 'mainpg';
		$data['post'] = $this->post_model->home_post();
		$data['recommend_post'] = $this->post_model->get_all_rand();
		
		$this->load->view('categorypage', $data);
	}
}